//
//  SCCoverView.m
//  Mutal
//
//  Created by TonyStart on 16/10/25.
//  Copyright © 2016年 com.wx. All rights reserved.
//

#import "SCCoverView.h"

@interface SCCoverView()
@property(nonatomic,strong)UIActivityIndicatorView *activityView;
@end
@implementation SCCoverView

-(instancetype)init{
    if (self = [super initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)]) {
        self.backgroundColor = [UIColor blackColor];
        
        self.alpha = 0.5;
        [self addSubview:self.activityView];
    }
    return self;
}
//菊花
-(UIActivityIndicatorView *)activityView{
    if (!_activityView) {
        _activityView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
        //        _activityView.color = [UIColor purpleColor];
        _activityView.center = self.center;
        [_activityView startAnimating];
    }
    return _activityView;
}

@end
